﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/MainPage.Master" CodeBehind="UserProfileShow.aspx.vb" Inherits="PetsCare.UserProfileShow" 
    title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style14
        {
            width: 100%;
            height: 62px;
        }
        .style16
        {
            width: 871px;
            height: 53px;
        }
        .style17
        {
            height: 53px;
        }
        .style21
        {
            height: 131px;
        }
        .style23
        {
            width: 112px;
        }
        .style24
        {
            width: 871px;
            height: 19px;
        }
        .style26
        {
            height: 49px;
        }
        .style27
        {
            height: 78px;
        }
        .style28
        {
            width: 100%;
            height: 173px;
            font-family: Verdana;
            font-size: 15px;
        }
        .style29
        {
            width: 108px;
            margin-left: 160px;
        }
        .style30
        {
            width: 711px;
        }
    </style>
    <link href="StyleSheet1.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style14">
        <tr bgcolor="#669999">
            <td class="style16">
                People</td>
                                            <td class="style17">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="style24">
                                &nbsp;
                <table class="style14">
                    <tr>
                        <td class="style23" rowspan="2">
                            <asp:Image ID="img_User" runat="server" Height="108px" Width="96px" />
                        </td>
                        <td class="style10">
                            <h1>
                            <asp:Label ID="lbl_UserName" runat="server" Text="User Name" 
                                    style="font-size: large; font-family: Arial, Helvetica, sans-serif"></asp:Label>
                            </h1>
                        </td>
                    </tr>
                    <tr>
                        <td class="style26">
                            &nbsp;</td>
                    </tr>
                </table>
                                            </td>
                                            <td class="style21">
                                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                                                    DataSourceID="SqlDataSource1" Width="163px" CssClass="mGrid">
                                                    <Columns>
                                                        <asp:ImageField DataImageUrlField="photo" HeaderText="Image">
                                                        </asp:ImageField>
                                                        <asp:HyperLinkField DataNavigateUrlFields="ID" 
                                                            DataNavigateUrlFormatString="Details.aspx?ID={0}" DataTextField="PetName" 
                                                            HeaderText="Name" />
                                                    </Columns>
                                                </asp:GridView>
                                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                                    ConnectionString="<%$ ConnectionStrings:PetsConnectionString %>" 
                                                    ProviderName="<%$ ConnectionStrings:PetsConnectionString.ProviderName %>" 
                                                    
                                                    SelectCommand="SELECT [PetName], [photo], [OwnerName] FROM [PetDetails] WHERE ([OwnerName] = ?)">
                                                    <SelectParameters>
                                                        <asp:QueryStringParameter Name="OwnerName" QueryStringField="UserName" 
                                                            Type="Int32" />
                                                    </SelectParameters>
                                                </asp:SqlDataSource>
                                            </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style27">
                                                            <table class="style28">
                                                                <tr>
                                                                    <td class="style29">
                                                                        <asp:Label ID="Label44" runat="server" Text="Age"></asp:Label>
                                                                    </td>
                                                                    <td class="style30">
                                                                        <asp:Label ID="lbl_Age" runat="server" Text="Label"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="style29">
                                                                        <asp:Label ID="Label3" runat="server" Text="Gender"></asp:Label>
                                                                    </td>
                                                                    <td class="style30">
                                                                        <asp:Label ID="lbl_gender" runat="server" Text="Label"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="style29">
                                                                        <asp:Label ID="Label5" runat="server" Text="Post Code"></asp:Label>
                                                                    </td>
                                                                    <td class="style30">
                                                                        <asp:Label ID="lbl_postcode" runat="server" Text="Label"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="style29">
                                                                        <asp:Label ID="Label7" runat="server" Text="City"></asp:Label>
                                                                    </td>
                                                                    <td class="style30">
                                                                        <asp:Label ID="lbl_city" runat="server" Text="Label"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="style27">
                                                            &nbsp;</td>
                                                    </tr>
                                                </table>
                                            </asp:Content>
